package io.shdxhl.simplerpc.client;

import io.shdxhl.simplerpc.client.discovery.SimpleServiceDiscovery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SimpleClientRunner {

    @Autowired
    private SimpleServiceDiscovery serviceDiscovery;
    /**
     * 1、服务发现
     *   获取ZK上所有的节点数据
     *   2、设置监听
     *     zk数据更新通知本地更新缓存
     */
    public void run() {
        serviceDiscovery.discover();
        //代理生成

    }
}
